import request from '@/utils/request'
//流程定义接口
export function flowDefinitionQuery(data) { //分页列表
    return request({
        method: 'get',
        url: '/flowDefinition/query',
        params: data
    })
}

export function flowDefinitionQueryById(id) { //查询
    return request({
        method: 'get',
        url: '/flowDefinition/query/' + id,
    })
}

export function flowDefinitionAdd(data) { //添加
    return request({
        method: 'post',
        url: '/flowDefinition/add',
        data
    })
}

export function flowDefinitionDelete(id) { //删除
    return request({
        method: 'get',
        url: '/flowDefinition/delete/' + id,
    })
}

export function flowDefinitionUpdate(data) { //修改
    return request({
        method: 'post',
        url: '/flowDefinition/update',
        data
    })
}